﻿<Window x:Class="Model.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:local="clr-namespace:Model"
        Background="{DynamicResource WindowBackgroundBrush}"
          Title="Duplicate File Finder (Beta)" Height="685" Width="800" MinHeight="600">
    <StackPanel>
        <Border Background="White" Height="30" BorderBrush="Black" BorderThickness="0,0,0,1">
            <StackPanel Orientation="Horizontal" HorizontalAlignment="Left" VerticalAlignment="Center"></StackPanel>
        </Border>

        <Grid>
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="150" />
                <ColumnDefinition Width="*" />
                <ColumnDefinition Width="200" />
            </Grid.ColumnDefinitions>

            <StackPanel Margin="10,10,10,10" Grid.Column="1">
                <ListBox Name="listBox1" ItemsSource="{Binding}"  Height="685"  VerticalAlignment="Stretch"
                 DataContext="{Binding Path=FileCollection, 
            UpdateSourceTrigger=PropertyChanged,Mode=TwoWay}">
                    
                
                <ListBox.ContextMenu>
                        <ContextMenu>
                            <MenuItem Header="Delete Selected File"/>
                            <MenuItem Header="Browse To Folder" Click="MenuItem_Click"/>
                        </ContextMenu>
                    </ListBox.ContextMenu>

                </ListBox>
            </StackPanel>
            <StackPanel Margin="10,10,10,10" Grid.Column="0">
                <Button Content="Select Folder" Height="22" Command="{Binding OpenCommand}" Margin="5" 
/>
                <Button Content="Search"  Height="22"  Margin="5" Command="{Binding SearchCommand}" />
                <CheckBox Content="CheckBox" IsChecked="True"/>
                <CheckBox Content="CheckBox - Three State" IsThreeState="True" IsChecked="{x:Null}" />

            </StackPanel>

            <TabControl Grid.Column="2" Height="685"></TabControl>
        </Grid>
    </StackPanel>

</Window>
